﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>15-XTableTest</title>
    <link href="../dist/css/bootstrap.css" rel="stylesheet" />
</head>
<body>
    <script src="../dist/js/jquery.js"></script>
    <script src="../dist/js/popper.js"></script>
    <script src="../dist/js/bootstrap.js"></script>
    <script src="../dist/js/bootstrap-es6.js"></script>
    <script>
        var container = new XContainer({
            container: document.body,
            children: [{
                xtype: 'table',
                dark: false,
                striped: true,
                bordered: true,
                hover: true,
                sm: false,
                children: [{
                    xtype: 'thead',
                    children: [{
                        xtype: 'tr',
                        children: [{
                            xtype: 'th',
                            children: [{
                                xtype: 'html',
                                html: '#'
                            }]
                        }, {
                            xtype: 'th',
                            children: [{
                                xtype: 'html',
                                html: 'Table heading'
                            }]
                        }, {
                            xtype: 'th',
                            children: [{
                                xtype: 'html',
                                html: 'Table heading'
                            }]
                        }, {
                            xtype: 'th',
                            children: [{
                                xtype: 'html',
                                html: 'Table heading'
                            }]
                        }, {
                            xtype: 'th',
                            children: [{
                                xtype: 'html',
                                html: 'Table heading'
                            }]
                        }]
                    }]
                }, {
                    xtype: 'tbody',
                    children: [{
                        xtype: 'tr',
                        cls: 'table-primary',
                        children: [{
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: '1'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }]
                    }, {
                        xtype: 'tr',
                        cls: 'table-success',
                        children: [{
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: '2'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }]
                    }, {
                        xtype: 'tr',
                        cls: 'table-danger',
                        children: [{
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: '3'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }]
                    }, {
                        xtype: 'tr',
                        cls: 'table-warning',
                        children: [{
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: '4'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }]
                    }, {
                        xtype: 'tr',
                        cls: 'table-info',
                        children: [{
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: '5'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }, {
                            xtype: 'td',
                            children: [{
                                xtype: 'html',
                                html: 'Table cell'
                            }]
                        }]
                    }]
                }]
            }]
        });
        container.render();
    </script>
</body>
</html>